package com.tcoiss.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tcoiss.app.domain.ElectronicFence;
import com.tcoiss.app.domain.FencePoints;
import com.tcoiss.common.core.web.domain.AjaxResult;
import com.tcoiss.common.component.api.model.AddressVo;

import java.util.List;

/**
 * 轨迹服务配置Service接口
 *
 * @author zw
 * @date 2021-02-21
 */
public interface IFencePointsService extends IService<FencePoints> {

    List<ElectronicFence> queryList(ElectronicFence electronicFence);

    boolean removeByCode(String fenceCode, String apiCode);

    AjaxResult getFenceByLocation(AddressVo addressVo);

    boolean checkFenceName(ElectronicFence electronicFence);


    AjaxResult saveOrUpdateFence(ElectronicFence fence);

    int updateByCode(ElectronicFence fence);

    boolean removeByDistrictId(Long districtId);

    AjaxResult saveFenceByQy(ElectronicFence electronicFence);

    boolean copyElectronicFence(ElectronicFence electronicFence);

    AjaxResult queryAdminByLocations(String location);
}

